package com.czk.springcloud.service;

import com.czk.springcloud.entity.CommonResult;
import com.czk.springcloud.entity.Payment;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * 服务降级的实现类
 *
 * @Author:ChenZhangKun
 * @Date: 2021/3/17 14:43
 */
@Component
public class PaymentFallBackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSql(Long id) {
        return new CommonResult<>(44, "服务降级的方法", new Payment(id, UUID.randomUUID().toString()));
    }
}
